import { ASideDataType } from "ASideTypes";

export enum rNames {
  login = "Login",
  regist = "Regist",
  home = "Home",
  products = "Products",
  category = "Category",
  product = "Product",
  productAddUpdate = "ProductAddUpdate",
  productDetail = "ProductDetail",
  pageManage = "PageManage",
  go = "Go",
  messageBoard = "MessageBoard",
  askList = "AskList"
}

export enum rPaths {
  login = "/login",
  regist = "/regist",
  home = "/",
  products = "/products",
  product = "/product",
  productAddUpdate = "/product/add-update",
  productDetail = "/product/detail",
  category = "/category",
  pageManage = "/page-manage",
  go = "/go",
  messageBoard = "/message-board",
  askList = "/ask-list"
}

export const menuConfig: Array<ASideDataType> = [
  {
    name: rNames.home,
    title: "首页",
    key: rPaths.home, // key同时也是link的地址值
    icon: "el-icon-s-home",
    isPublic: true // 公开的页面
  },
  {
    name: rNames.products,
    title: "品类",
    key: rPaths.products,
    icon: "el-icon-s-order",
    children: [
      // 子菜单列表
      {
        name: rNames.category,
        title: " 品类管理",
        key: rPaths.category,
        icon: "el-icon-s-management"
      },
      {
        name: rNames.product,
        title: " 图片/文章管理",
        key: rPaths.product,
        icon: "el-icon-setting"
      }
    ]
  },
  {
    name: rNames.pageManage,
    title: "二级页面",
    key: rPaths.pageManage,
    icon: "el-icon-notebook-1",
    children: [
      // 子菜单列表
      {
        name: rNames.go,
        title: " 标题图片",
        key: rPaths.go,
        icon: "el-icon-s-flag"
      }
      // {
      //   title: ' 精选案例',
      //   key: '/examples',
      //   icon: 'tool',
      // },
      // {
      //   title: ' 装修咨询',
      //   key: '/ask',
      //   icon: 'tool',
      // },
      // {
      //   title: ' 会员中心',
      //   key: '/center',
      //   icon: 'tool',
      // },
    ]
  },
  {
    name: rNames.messageBoard,
    title: "留言板",
    key: rPaths.messageBoard,
    icon: "el-icon-s-promotion"
  },
  {
    name: rNames.askList,
    title: "装修咨询",
    key: rPaths.askList,
    icon: "el-icon-service"
  }
  // {
  //     title: ' 用户管理',
  //     key: '/user',
  //     icon: 'user'
  // },
  // {
  //     title: ' 角色管理',
  //     key: '/role',
  //     icon: 'safety',
  // },
  // {
  //     title: ' 图形图表',
  //     key: '/charts',
  //     icon: 'area-chart',
  //     children: [
  //         {
  //             title: ' 柱形图',
  //             key: '/charts/bar',
  //             icon: 'bar-chart'
  //         },
  //         {
  //             title: ' 折线图',
  //             key: '/charts/line',
  //             icon: 'line-chart'
  //         },
  //         {
  //             title: ' 饼图',
  //             key: '/charts/pie',
  //             icon: 'pie-chart'
  //         },
  //     ]
  // }
];
